package ua.sumdu.LukyanovChalyi.Server;

import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConfigurator;

public class ViewServer {

    private static final Logger logger = Logger.getLogger(ViewServer.class);
    
    public ViewServer(){
        DOMConfigurator.configure("log4j.xml");
    }

    public void showMessage(String message) {
        System.out.println(message);
    }

    public void showException(String message, Throwable e) {
        logger.error(message, e);
        System.out.println(message);
    }
}